package cn.ssm.controller;

import java.util.List;

import org.aspectj.lang.annotation.After;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.ssm.biz.ComputerroomBiz;
import cn.ssm.biz.impl.CompInfoBizImpl;
import cn.ssm.biz.impl.RepairListBizImpl;
import cn.ssm.pojo.Computerroom;
@Controller
@RequestMapping("/computerroom")
public class ComputerRoomController {
	
	@After(value = "")
	public void aaa(){
		
	}
	
	@Autowired
	@Qualifier("CImpl")
	private CompInfoBizImpl CompInfoBizImpl;
	
	@Autowired
	@Qualifier("RImpl")
	private RepairListBizImpl repBizimpl;
	
	
	
	@Autowired
	@Qualifier("computerroomBizImpl")
	private ComputerroomBiz computerroomBiz;
	
	@RequestMapping("/showRoom")
	public String showRoom(Model model,Integer id){
		List< Computerroom> l=computerroomBiz.getRoomdescribe();
		System.out.println("======================================"+id);
		model.addAttribute("list",l);
		System.out.println("===================================>>>>>>>>>>>>"+l.size());
		return "main";
	}
	
	
}
